class Solution:
    def firstMissingPositive(self, nums: list) -> int:
        st = set(nums)
        for i in range(1, len(nums) + 2):
            if i not in st:
                return i
